package comg.springboot.log.demo.service.impl;

import comg.springboot.log.demo.pojo.Log;
import comg.springboot.log.demo.service.LogService;
import comg.springboot.log.demo.util.JsonUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2022/4/15 16:09
 * @Version: 1.0
 */
@Service
@Slf4j
public class LogServiceImpl implements LogService {

    @Override
    public void addLog(Log mylog) {
//        log.info("--------------------------{}",mylog);
        final String string = JsonUtils.toJsonString(mylog);
        log.info("====:{}",string);
    }

    @Override
    public void putLog(Log putLog) {
        log.info("--------------------------{}",putLog);
    }
}
